<%-- 
    Document   : ManageUserPage
    Created on : Mar 11, 2015, 11:37:48 AM
    Author     : trang_000
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib uri="http://displaytag.sf.net"  prefix="display" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="description" content="<s:property value="pageDescription"/>">
        <title><s:property value="title"/> - Online Dormitory System</title>
        <link href="<%= request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
        <link href="<%= request.getContextPath()%>/css/style_for_table.css" rel="stylesheet" type="text/css"/>
    </head>
    <body>
        <% int i = 0;%>
        <div class="headerbg">
            <%@include file="/include/nHeader.jsp" %>
        </div>
        <div class="contentbg">
            <div class="content1">
                <div class="content2">
                    <div class="contentLeft">
                        <div class="categories">
                            <div class="allCat">ALL CATEGORIES</div>
                            <%@include file="/include/aCategories.jsp" %>
                        </div>
                    </div>
                    <div class="contentRight">
                        <div class="body">
                            <div class="breadcrumb">
                                Home
                            </div>
                            <div class="bodyUpper"> 
                                <h1>Les infos des utilisateurs</h1>
                                <table class="simpletable" style="width:100%">
                                    <tr>
                                        <th>UserID</th>
                                        <th>Username</th> 
                                        <th>Password</th>
                                        <th></th>
                                        <th></th>
                                    </tr>
                                    <s:iterator value="usersList">
                                        <tr>
                                            <td><s:property value="UserID"/></td>    
                                            <td><s:property value="UserName"/></td>
                                            <td><s:property value="Password"/></td>    
                                            <td>
                                                <a href="<%= request.getContextPath()%>/Profile-Process/<s:property value='profileID'/>" title="<s:property value='studentCode'/>">
                                                    <img src="<%= request.getContextPath()%>/css/Edit.png" style="" alt="Creer Contrait" width="20" height="auto" title="Creer Contrait"/>
                                                </a>
                                            </td>
                                            <td>
                                                <a href="<%= request.getContextPath()%>/Profile-Process/<s:property value='UserID'/>" title="<s:property value='studentCode'/>">
                                                    <img src="<%= request.getContextPath()%>/css/viewIsuse.png" style="" alt="Creer Contrait" width="20" height="auto" title="Creer Contrait"/>
                                                </a> 
                                            </td>
                                        </tr>
                                    </s:iterator>  
                                </table>
                                <div id="sl12" style="float: right;">
                                    <s:form namespace="/Administration/Product" action="add-product" target="_blank" >
                                        <s:submit value="New User"  cssStyle="width: 100px; margin-left: 12px;background-color: gray;" theme="simple" title="New User"/>
                                    </s:form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="footerbg">
            <%@include file="/include/iFooter.jsp" %>
        </div>
    </body>
</html>
